<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onresize = function  () {
				//窗口改变时计算宽高
//				alert("窗口改变")
                console.log(document.documentElement.clientHeight)
                console.log(document.documentElement.clientWidth)
			}
		</script>
	</head>
	<body>
	</body>
</html>
